<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>

<div class="pageContent">

    <form method="post" action="/basesetting/goods!add" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layoutH="58">
            <input type="hidden" name="goodsType.id" value="${goodsType.id}"/>
            <div class="unit">
                <label>目录名字：</label>
                <input type="text" name="goodsType.goodsName" size="30" minlength="1" maxlength="20" class="required" value="${goodsType.goodsName}"/>
            </div>

            <div class="unit">
                <label>父&nbsp;&nbsp;菜&nbsp;&nbsp;单：</label>
                <select name="goodsType.parentId">
                    <option value="0">父菜单</option>
                    <c:forEach items="${parentRes}" var="res">
                        <option value="${res.id}"  <c:if test="${res.id==goodsType.parentId}"> selected="true" </c:if>   >&nbsp;&nbsp;&nbsp;&nbsp;${res.goodsName}</option>
                    </c:forEach>
                </select>
            </div>
            <div class="unit">
                <label>目录描述：</label>
                <textarea rows="5" cols="30" name="goodsType.sort">
                    ${goodsType.sort}
                </textarea>
            </div>

        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>

</div>

